﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default7.aspx.cs" Inherits="Default7" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="angular.js"></script>
    <script src="controller.js"></script>
    <script src="angular.min.js"></script>
</head>
<body ng-app="myApp">
    <div ng-controller="myCtrl">
        {{firstName+""+lastName}}
    
    </div>
    <div runoob-directive>
    </div>
    <script>

        var app = angular.module("myApp", []);
        app.controller("myCtrl", function ($scope) {
            $scope.firstName = "qwer";
            $scope.lastName = "1234";
        });
        app.directive("runoobDirective", function () {

            return {
                template: "wo zaizhilin66"

            };
        });

    </script>
</body>
</html>
